<html>
    <head>
      <title>My Great Website</title>
    </head>
    <body>
      <div id="fb-root"></div>
      <script src="http://connect.facebook.net/en_US/all.js">
      </script>
      <script>
	 FB.init({ 
                appId:'176213615761250', 
                cookie:true, 
                status:true, 
                xfbml:true,
		oauth: true
        });
    //var uid = response.authResponse.userID;
   // var accessToken = response.authResponse.accessToken;
 	FB.getLoginStatus(function(response) {
		var msg;
 		 if (response.status === 'connected') {
   			msg="connected";
  		} else if (response.status === 'not_authorized') {
   			msg="not authorized";
 		  } else {
		   	msg="not connected";
  	}
	document.write(msg);
	}); 
      </script>
     </body>
 </html>

